package com.lanou.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName MyNotice
 * @Description TODO
 * @Author lizhenjiang
 * @Date 2025年08月15日 16:31
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyNotice {
    private Integer id;
    private String title;
    private String content;
    private String image;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time=new Date();
    private Integer userId;
}
